package com.linlong.linlongchat.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.linlong.linlongchat.domain.po.Result;
import com.linlong.linlongchat.domain.po.User;

public interface IUserService extends IService<User> {
    Result<String> login(String username, String password);

    Result<String> emailLogin(String email, String code);

    Result<String> register(String username, String email, String code, String password);

    Result<String> sendEmail(String email);

    Result<String> updateUsername(String account, String username);

    Result updateSignature(String account, String signature);

    User findByEmail(String email);

    Result<String> updatePassword(String email, String newPassword, String code);

    Result<User> getUserByAccount(String account);

    Result<String> sendEmailResest(String email);

    Result updateSex(String account, Integer sex);

    Result logout(String token);
}
